import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';
import { FormsModule } from '@angular/forms';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule } from '@angular/common/http';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
import { LocationStrategy, HashLocationStrategy, registerLocaleData } from '@angular/common';
import { StartComponent } from './home/start/start.component'; //测试首页
import {ExplainComponent} from "./home/explain/explain.component"; //进入测试说明
import {AnswerComponent} from "./home/answer/answer.component"; //答题界面
import {ResultComponent} from "./home/result/result.component"; //答题结果
import {UploadComponent} from "./home/upload/upload.component"; //上传个人信息界面
import {BarComponent} from "./bar/bar.component";

// service
import { UtilService } from './my-service/util.service';
import {TrainingService} from "./my-service/training.service";
//公共组件
import { NavComponent } from './nav/nav.component';
import { breadcrumbComponent } from './my-public/breadcrumb/breadcrumb.component';
// UI
import { NgZorroAntdModule, NZ_MESSAGE_CONFIG } from 'ng-zorro-antd';

@NgModule({
  declarations: [
    AppComponent,
    NavComponent,
    HomeComponent,
    StartComponent,
    breadcrumbComponent,
    ExplainComponent,
    AnswerComponent,
    ResultComponent,
    UploadComponent,
    BarComponent
  ],
  imports: [
    AppRoutingModule,
    HttpClientModule,
    BrowserModule,
    FormsModule,
    BrowserAnimationsModule,
    NgZorroAntdModule,
    HttpModule
  ],
  providers: [
    UtilService,
    TrainingService
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
